﻿using Microsoft.Xna.Framework;
using RoboTrocity.Code.ObjectStates;

namespace RoboTrocity.Code {
	class Ladder : GameObject {
		public Ladder(Point _position)
			: base(_position, "ladder") {
			Width = 100;
			Height = 100;
		}

		public override void Update(float timeElapsed) {
		
		}

		public void PlaceEntityOnLadder(Entity entity) {
			entity.setPositionX(Center.X - entity.Width/2);
			entity.CurrentState = entity.getState(typeof (ClimbingState));
            (entity.CurrentState as ClimbingState).Target = this;
			entity.Velocity = Vector2.Zero;
		}

		public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sBatch, Camera camera) {
		
		}
	}
}
